<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<table width='700px' border='1px' cellspacing='0' id='tid'>
		<tr>
			<td>111</td>
			<td>111</td>
			<td>111</td>
		</tr>
		<tr>
			<td>111</td>
			<td>111</td>
			<td>111</td>
		</tr>
		<tr>
			<td>111</td>
			<td>111</td>
			<td>111</td>
		</tr>
	</table>
	<form action="javascript:">
<p>number <input type="text" id='row'> hang </p>
<p>di <input type="text" id='clo'> lie</p>
<p><input type="button" value='xiugai' id='commit'></p>

	</form>
</body>
<script>
	tidobj=document.getElementById('tid');
	rowobj=document.getElementById('row');
	cloobj=document.getElementById('clo');
	commitobj=document.getElementById('commit');
	function set(i,j){
tidobj.rows[i-1].cells[j-1].innerHTML='abc';
	}

	commitobj.onclick=function(){
		rowval=rowobj.value;
		cloval=cloobj.value;
		set(rowval,cloval);

	}

	
</script>
</html>